<?php

namespace mpend\modules\demand\controllers;

use Yii;
use mpend\components\Controller;
use mpend\modules\demand\models\DemandViewSearch;

/**
 * 需求相关接口
 * 
 * @author emhome <emhome@163.com>
 * @since 1.0
 */
class DefaultController extends Controller {

    /**
     * @inheritdoc
     */
    protected function verbs() {
        return [
            '*' => ['GET'],
        ];
    }

    /**
     * 详情
     * @inheritdoc
     */
    public function actionView($id) {
        return DemandViewSearch::findOrFail($id);
    }

}
